package deustotech.mobility.vc.core;

public class Timer extends Thread{

	boolean running=false;
	private int interval;
	
	public Timer(int interval){
		this.interval = interval;
		
	}
	
	public void run(){
		while(running){
				try {
					Thread.sleep(interval);
					System.out.println("Dormir: "+interval+" msec");
				} catch (InterruptedException e) {
					e.printStackTrace();
				}	
				
		}

	}



}
